﻿<%@ Control Language="vb" AutoEventWireup="false" Explicit="true" CodeFile="CatParent.ascx.vb"
    Inherits="NVPortal.Modules.NVProduct.CatParent" %>
<style type="text/css">
    .lblCatShow
    {
        font-family: Tahoma;
        font-size: 12px;
        font-weight: bold;
        color: #00519a;
    }
.ProductCatSub_Item {
float: left;
position: relative;
padding: 0px 4px;
height: 141px;
}
.ProductCatSub_Info {

width: 150px;
height: 110px;
position: relative;
z-index: 1;
}
.ProductCatSub_Img {
position: relative;
overflow: hidden;
}
.ProductCatSub_Avatar {width: 140px; height: 105px;border: solid 1px #ccccca; padding: 2px;}
.ProductCatSub_Title {
padding-top: 5px;
text-align: center;
position: relative;
width: 150px;
height: 65px;
}
.PMK_Titletextr a.PMK_Titletextr:link, #PMK_Titletextr .PKM_Item .PMK_Title a.PMK_Titletextr:visited {
font-family: Tahoma;
font-size: 11px;
color: #666666;
font-weight: bold;
}
</style>
<table cellpadding="0" cellspacing="0" border="0" style="height: 30px; background: url(/Portals/_default/Skins/NoiThat/img/catbg.png) repeat-x;
    width: 100%; padding: 0px;">
    <tr>
        <td style="height: 30px; background: url(/Portals/_default/Skins/NoiThat/img/catbg1.png) no-repeat left;
            padding: 0px 0px 0px 23px;">
            <span id="CatParent" runat="server" style="font-family: Tahoma; font-size: 12px;
                font-weight: bold; color: #343434;">
                <asp:Label CssClass="lblCatShow" ID="lblCatParent" runat="server"></asp:Label></span>
        </td>
    </tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="background: #fff;
    font-family: Tahoma; font-size: 12px; color: #333333;">
    <tr>
        <td style="vertical-align: top;">
            <asp:Image ID="ImgAvatar" runat="server" />
        </td>
        <td style="vertical-align: top; padding: 15px 15px;">
            <asp:Repeater ID="rptProductCatSub" runat="server">
                <ItemTemplate>
                    <div class="ProductCatSub_Item">
                        <div class="ProductCatSub_Info">
                            <div class="ProductCatSub_Img">
                                <asp:HyperLink CssClass="NewsSpecialD_Orther" ID="hplOtherNews" runat="server" ToolTip='<%# Server.HtmlDecode(DataBinder.Eval(Container.DataItem,"CategoryName"))%>'
                                    NavigateUrl='<%# FormatURL(DataBinder.Eval(Container.DataItem,"Categoryid"),DataBinder.Eval(Container.DataItem,"CategoryName")) %>'>
                        <img src='<%# "/Portals/" & PortalId & "/Product/Cat/" & DataBinder.Eval(Container.DataItem,"Avatar")%>' class="ProductCatSub_Avatar" alt='<%# DataBinder.Eval(Container.DataItem,"CategoryName")%>' /><br />
                                </asp:HyperLink>
                            </div>
                        </div>
                        <div class="ProductCatSub_Title">
                            <asp:HyperLink CssClass="PMK_Titletextr" ID="HyperLink1" runat="server" Text='<%# Server.HtmlDecode(DataBinder.Eval(Container.DataItem,"CategoryName"))%>'
                                NavigateUrl='<%# FormatURL(DataBinder.Eval(Container.DataItem,"Categoryid"),DataBinder.Eval(Container.DataItem,"CategoryName")) %>' />
                            </div>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </td>
    </tr>
</table>
